# Author Esther Kundin

OBJS =  ast.cmo strast.cmo strscanner.cmo astc.cmo astconverter.cmo parser.cmo scanner.cmo compile.cmo gaq.cmo

TARFILES = Makefile scanner.mll parser.mly \
	ast.ml astc.ml astconverter.ml gaq.ml \

gaq: $(OBJS)
	ocamlc -o gaq $(OBJS)

scanner.ml : scanner.mll
	ocamllex scanner.mll

strscanner.ml : strscanner.mll
	ocamllex strscanner.mll

parser.ml parser.mli : parser.mly
	ocamlyacc parser.mly

%.cmo : %.ml
	ocamlc -c $<

%.cmi : %.mli
	ocamlc -c $<

gaq.tar.gz : $(TARFILES)
	cd .. && tar czf plt-compiler/gaq.tar.gz $(TARFILES:%=gaq/%)

.PHONY : clean
clean :
	rm -f microc parser.ml parser.mli scanner.ml testall.log \
	*.cmo *.cmi *.out *.diff

# Generated by ocamldep *.ml *.mli
ast.cmo:
ast.cmx:
astc.cmo: strscanner.cmo strast.cmo
astc.cmx: strscanner.cmx strast.cmx
astconverter.cmo: astc.cmo ast.cmo
astconverter.cmx: astc.cmx ast.cmx
compile.cmo: astconverter.cmo astc.cmo ast.cmo
compile.cmx: astconverter.cmx astc.cmx ast.cmx
gaq.cmo: scanner.cmo parser.cmi compile.cmo ast.cmo
gaq.cmx: scanner.cmx parser.cmx compile.cmx ast.cmx
parser.cmo: ast.cmo parser.cmi
parser.cmx: ast.cmx parser.cmi
parser.cmi: ast.cmo
scanner.cmo: parser.cmi
scanner.cmx: parser.cmx
strast.cmo:
strast.cmx:
strscanner.cmo: strast.cmo
strscanner.cmx: strast.cmx
